
<template>
    <Button @click="clickHandler"  v-permission="'btnUpload'" type="primary" size="small" class="margin-right-5" :disabled="status !== '审核通过' || status === '已归档'">
        上传合同附件
    </Button>
</template>

<script>
  export default {
    accessLabel: '上传合同附件',
    accessKey: 'btnUpload',
    props:{
      status:String,
      required: true
    },
    methods: {
      clickHandler (e) {
        this.$emit('uploadclick', e);
      }
    },
    mounted () {
    }
  };
</script>
